export default {
	namespaced: true,
	state: {
		theme: uni.getStorageSync('login-type') || 'farmer',//'fs'
	},
	mutations: {
		setTheme(state, payload) {
			state.theme = payload
		},
	},
	actions: {
		setThemeAction(context, themeMode) {
			context.commit('setTheme', themeMode)
			// uni.setStorageSync('login-type', themeMode)
		},
	},
}